import 'package:high_help_apps/generated/json/base/json_convert_content.dart';
import 'package:high_help_apps/generated/json/base/json_field.dart';

class CommodityInfoEntity with JsonConvert<CommodityInfoEntity> {
	late int total;
	late List<CommodityInfoRecords> records;
	late int current;
	late int size;
}

class CommodityInfoRecords with JsonConvert<CommodityInfoRecords> {
	@JSONField(name: "create_at")
	late String createAt;
	@JSONField(name: "update_at")
	late String updateAt;
	late int id;
	late CommodityInfoRecordsUser user;
	late String title;
	@JSONField(name: "original_price")
	late double originalPrice;
	@JSONField(name: "current_price")
	late double currentPrice;
	late String desc;
	late int status;
	@JSONField(name: "commodity_images")
	late List<CommodityInfoRecordsCommodityImages> commodityImages;
	@JSONField(name: "is_selled")
	late int isSelled;
}

class CommodityInfoRecordsUser with JsonConvert<CommodityInfoRecordsUser> {
	@JSONField(name: "update_at")
	late String updateAt;
	late int uid;
	@JSONField(name: "nick_name")
	late String nickName;
	late String email;
	late dynamic phone;
	late String sex;
	late int id;
	@JSONField(name: "real_name")
	late String realName;
	@JSONField(name: "create_at")
	late String createAt;
	@JSONField(name: "role_int")
	late dynamic roleInt;
	late String avatar;
	late dynamic birthday;
	late dynamic location;
}

class CommodityInfoRecordsCommodityImages with JsonConvert<CommodityInfoRecordsCommodityImages> {
	late String token;
	late int id;
	@JSONField(name: "create_at")
	late String createAt;
	@JSONField(name: "update_at")
	late String updateAt;
	@JSONField(name: "commodity_id")
	late int commodityId;
}
